package com.lin.forum.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description ="帖⼦回复表")
public class ArticleReply {
    @Schema(description ="编号，主键，⾃增")
    private Long id;
    @Schema(description ="关联帖⼦编号，⾮空")
    private Long articleId;
    @Schema(description ="楼主⽤⼾，关联⽤⼾编号，⾮空")
    private Long postUserId;
    @Schema(description ="关联回复编号，⽀持楼中楼")
    private Long replyId;
    @Schema(description ="楼主下的回复⽤⼾编号，⽀持楼中楼")
    private Long replyUserId;
    @Schema(description ="回贴内容，⻓度500个字符，⾮空")
    private String content;
    @Schema(description ="点赞数，默认0")
    private Integer likeCount;
    @Schema(description ="状态 0 正常，1禁⽤，默认0")
    private Byte state;
    @Schema(description ="是否删除 0否 1是，默认0")
    private Byte deleteState;
    @Schema(description ="创建时间，自动记录插入时间")
    private Date createTime;
    @Schema(description ="修改时间，自动更新")
    private Date updateTime;

}